<!DOCTYPE html>
<html>
  <head>
    <title>grade.html</title>
	
    <meta name="keywords" content="keyword1,keyword2,keyword3">
    <meta name="description" content="this is my page">
    <meta name="content-type" content="text/html; charset=UTF-8">
    
    <!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
	<script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
	<script type="text/javascript">
	$(function(){
		$.get("gradeJSONServlet",function(data){
			var g=$("#grade");
			$.each(data,function(i,d){
				g.append("<tr><td>"+d.id+"</td><td>"+d.gname+"</td></tr>");
			});
		});
	});
	</script>
  </head>
  
  <body>
    <table id="grade" border="1" width="49%" align="center" >
    <tr><td>编号</td><td>名称</td></tr>
    </table>
  </body>
</html>
